package com.stx.jeepay.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.stx.jeepay.core.entity.SysUserEntity;


import java.util.List;
import java.util.Map;

/**
 * 系统用户表
 *
 * @author suntingxing
 * @email 1@gmail.com
 * @date 2023-09-11 13:05:22
 */
public interface SysUserService extends IService<SysUserEntity> {

    /**
     * 添加系统用户
     * @param sysUser
     * @param mch
     */
    void addSysUser(SysUserEntity sysUser, String mch);

    /**
     * 获取到商户的超管用户ID
     * @param mchNo
     * @return
     */
    Long findMchAdminUserId(String mchNo);

    /**
     * 修改用户信息
     * @param sysUser
     */
    void updateSysUser(SysUserEntity sysUser);

    /** 删除用户 **/
    void removeUser(SysUserEntity sysUser, String sysType);

    /** 分配用户角色 **/
    void saveUserRole(Long userId, List<String> roleIdList);
}

